<?php
class Index extends MY_Controller{
    public function __construct() {
        parent::__construct();
        $this->load->helper('main_helper');
		$this->load->model('model_home');
    }
    public function index(){
		$data['title'] = "Hanoi to Sapa trains";
		$data['template'] = "home";
		$data['plantrip'] = $this->plantrip(3);
		$data['listtrains'] = $this->listtrains(20);
		//$this->debug($data['plantrip']);
  		$this->load->view("layout",$data);
    }
}
?>